import os


class Config:
    # 域名
    host = 'http://192.168.52.157'

    # 项目路径
    root_path = os.path.dirname(os.path.abspath(__file__))

    # 测试报告路径
    reports_path = os.path.join(root_path, 'report', 'report.html')

    # 测试数据路径
    data_path = os.path.join(root_path, 'data', 'cases.xlsx')

    # 测试用例路径
    test_case_path = os.path.join(root_path, 'scripts')

    # 用户数据库表
    users_table_path = os.path.join(root_path, 'data', 'table.sql')

    # mysql配置
    mysql_path = '/usr/local/mysql/bin/mysqldump'
    mysql_database = 'tpshop2.0'
    mysql_table = 'tp_users'
    mysql_host = '192.168.52.157'
    mysql_port = 3306
    mysql_user = "root"
    mysql_password = "123456"
    charset = "utf8"

    # ssh配置
    ssh_host = '192.168.52.157'
    ssh_port = '22'
    ssh_user = 'root'
    ssh_password = '123456'
    table_path = '/root/table.sql'


config = Config()
